<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateCmcExpressTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('cmc_express', function (Blueprint $table) {
            $table->increments('id');
            $table->string('code')->default('')->comment('快递公司简称');
            $table->string('name')->default('')->comment('快递公司全称');
            $table->integer('sort')->default('0')->comment('排序');
            $table->tinyInteger('is_show')->default('0')->comment('是否显示');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('cmc_express');
    }
}
